package com.grammer;

import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Arrays;
import java.util.List;
import java.util.Properties;

public class TestNull {
    class Node {
        public Long getSid() {
            return sid;
        }

        public void setSid(Long sid) {
            this.sid = sid;
        }

        private Long sid;
    }

    public static void main(String[] args) {

        InetAddress localHost = null;
        try {
            localHost = Inet4Address.getLocalHost();
        } catch (UnknownHostException e) {
            System.out.println(e.getMessage());
        }
        String ip = localHost.getHostAddress();
        System.out.println( ip );
    }
}
